package com.roads.plan.domain.gantt;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 形象进图任务甘特图
 *
 * @author nhp
 * @date 2024-03-08
 */
public class PlanProfileGanttTask {

    /**
     * id
     */
    private Integer id;
    /**
     * 名称
     */
    private String text;
    /**
     * 类型
     */
    private String type;
    /**
     * 是否打卡
     */
    private Boolean open;
    /**
     * 开始日期
     */
    @JsonProperty("start_date")
    private Date startDate;
    /**
     * 结束日期
     */
    @JsonProperty("end_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    /**
     * 父项ID
     */
    private Integer parent;
    /**
     * 进度
     */
    private BigDecimal progress;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    public BigDecimal getProgress() {
        return progress;
    }

    public void setProgress(BigDecimal progress) {
        this.progress = progress;
    }
}
